//
//  UIImage+JPF.h
//  JPFCore
//
//  Created by JPFei on 2019/3/8.
//  Copyright © 2019 nmo. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (JPF)


+ (UIImage *)deflultGraduallyImage:(UIView *)cnt;
+ (UIImage *)graduallyImage4View:(UIView *)cnt
                      startColor:(UIColor *)startColor
                        endColor:(UIColor *)endColor;

+ (UIImage *)graduallyImage4View:(UIView *)cnt
                      startColor:(UIColor *)startColor
                        endColor:(UIColor *)endColor
                      startPoint:(CGPoint)startPoint
                        endPoint:(CGPoint)endPoint;

+ (UIImage*) imageWithColor: (UIColor*) color
                       rect:(CGRect)rect;

- (UIColor *)colorImage;

//修复旋转角度为0
- (UIImage *)fixOrientation;

- (UIImage *)markeImageByView:(UIView *)view;

- (UIImage*)imageBlackToTransparentWithRed:(CGFloat)red andGreen:(CGFloat)green andBlue:(CGFloat)blue;

- (NSData *)imageData4MaxLenght:(NSInteger)maxLength;

@end

NS_ASSUME_NONNULL_END
